
public class EmployeeTest {
	public static void main(String[] args) {
		//创建对象
		Employee e = new Employee();
		//属性赋值
		e.name = "Tom";
		e.salary = 1000000;
		//调取方法
		MyDate myDate = new MyDate();
		myDate.year = 2021;
		myDate.month = 1;
		myDate.day = 1;
		e.myDate = myDate;
		e.getInfo();
	}

}
